package com.itheima.thread.api.demo05;

public class ThreadDemo01 {

    public static void main(String[] args) {

        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();

        t1.setName("猪八戒");
        t2.setName("嫦娥");

        t1.setPriority(6);
        t2.setPriority(4);

        t1.start();
        t2.start();

    }

}
